<?
include("../config.php");
session_start();
$view = new view();
$view->title 						= "My transactions";
$view->query 						= "select id,userid,transid,totalprice,comission,approved from transactions where userid='".$_SESSION['id']."'";
$view->properties['headers'] 		= array('ticket ID'=>"",'user '=>"","transaction ID"=>"", "Total price"=>"","Commission"=>"","status"=>"","approve"=>"<a href='approve.php?id=##id##&status=1'>Approve</a> | <a href='approve.php?id=##id##&status=2'>disapprove</a>");
$view->properties['style']		= "tablesorter";
$view->properties['cols']		= '6';
$parse = $view->CreateView();
echo $parse;
?>
                